<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="zh-CN">
<th:block th:replace="common/head :: head(text='用户管理')"/>
<link rel="stylesheet" type="text/css" th:href="@{/css/admin/main.css}"/>
<body>
<div class="container">
  <th:block th:replace="common/sidebar :: sidebar(flag='user-info')"/>
  <div class="main-content">
    <div id="reminders">
      <h2>用户管理</h2>
      <a class="operate-add" th:href="@{/addUserInfo/{functionName}/{id}(functionName='add', id='0')}">新增</a>
      <table>
        <thead>
        <tr>
          <th>收信人ID</th>
          <th>收信人昵称</th>
          <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="sendUserInfo:${sendUserInfoList}">
          <td th:text="${sendUserInfo.toUser}"/>
          <td th:text="${sendUserInfo.toUserNick}"/>
          <td>
            <a class="operate-edit" th:href="@{/addUserInfo/{functionName}/{id}(functionName='edit', id=${sendUserInfo.tableId})}">修改</a>
            <a class="operate-del" th:href="@{admin/delSendUserInfo/{id}(id=${sendUserInfo.tableId})}">删除</a>
          </td>
        </tr>
        </tbody>
      </table>
    </div>
  </div>
</div>
</body>
</html>
